package com.example.rdemo.service;

import java.util.List;

import com.example.rdemo.entity.Shop;
import com.example.rdemo.utils.PageResult;
import org.springframework.stereotype.Service;

/**
 * shopService接口
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public interface ShopService {
    //查询shop
    public Shop selectShopByCid(Long cid);

    //查询shop列表 @param shop shop@return shop集合
    public PageResult selectShopList(Shop shop, int pageNum, int pageSize);
    //带一对多
    public PageResult selectShopGoodsList(Shop shop, int pageNum, int pageSize);

    //新增shop
    public int insertShop(Shop shop);

    //修改shop
    public int updateShop(Shop shop);

    //批量删除shop @param cids 需要删除的shop主键集合@return 结果
    public int deleteShopByCids(Long[] cids);

    // 删除shop信息@param cid shop主键@return 结果
    public int deleteShopByCid(Long cid);

}
